package com.rede.didiok.user.entity;

import java.util.Date;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rede.didiok.common.entity.SuperEntity;

/**
 * 用户签到表
 * 
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@Data
@TableName("u_sign_in_record")
public class SignInRecordEntity extends SuperEntity<SignInRecordEntity> {
	private static final long serialVersionUID = 1L;

	/**
	 * 创建人uid
	 */
	private String createUserUid;
	/**
	 * 创建人名称
	 */
	private String createUserName;
	/**
	 * 签到时间
	 */
	private String signDate;
	/**
	 * 签到类型(0:每日签到，1:补签)
	 */
	private Integer signType;



	// 以下字段不存入数据库
	@TableField(exist = false)
	private Integer isSignIn;


	/**
	 * 用户
	 */
	@TableField(exist = false)
	private UserEntity user;

	public SignInRecordEntity(String createUserUid, String signDate,Integer type) {
		this.createUserUid = createUserUid;
		this.signDate =signDate;
		this.signType =type;
		this.setCreateTime(new Date());
	}

	public SignInRecordEntity(){

	}
}
